package resources

import "embed"

//go:embed  template/*
var resourceFS embed.FS

func GetTemplateMybatisPlusConverterEntityToDtoJava() string {
	data, _ := resourceFS.ReadFile("template/mybatis_plus/converter_entity_to_dto.java")
	return string(data)
}
func GetTemplateMybatisPlusDtoJava() string {
	data, _ := resourceFS.ReadFile("template/mybatis_plus/dto.java")
	return string(data)
}

// 获取resources->template->mybatis_plus->entity.java
func GetTemplateMybatisPlusEntityJava() string {
	data, _ := resourceFS.ReadFile("template/mybatis_plus/entity.java")
	return string(data)
}
func GetTemplateMybatisPlusManagerJava() string {
	data, _ := resourceFS.ReadFile("template/mybatis_plus/manager.java")
	return string(data)
}
func GetTemplateMybatisPlusMapperJava() string {
	data, _ := resourceFS.ReadFile("template/mybatis_plus/mapper.java")
	return string(data)
}

func GetTemplateMybatisPlusQueryJava() string {
	data, _ := resourceFS.ReadFile("template/mybatis_plus/query.java")
	return string(data)
}
func GetTemplateMybatisPlusRpcApiJava() string {
	data, _ := resourceFS.ReadFile("template/mybatis_plus/rpcAPI.java")
	return string(data)
}

func GetTemplateMybatisPlusRpcImplApiJava() string {
	data, _ := resourceFS.ReadFile("template/mybatis_plus/rpcImplAPI.java")
	return string(data)
}

func GetTemplateMybatisPlusVoJava() string {
	data, _ := resourceFS.ReadFile("template/mybatis_plus/vo.java")
	return string(data)
}
